package com.wesley.compose;

/**
 * <h1>Leaf角色</h1>
 * <p>大学中的系</p>
 *
 * @Date: 2021/8/19
 */
public class Department implements OrgComponent {

    private String name;

    public Department(String name) {
        this.name = name;
    }

    @Override
    public void print() {
        System.out.println(name + "专业");
    }
}
